//---------------------------------------------------------------------------


#include <vcl.h>
#pragma hdrstop

#include "BaseVC.h"
#include "CCppBuilderDerived.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

//HRESULT STDAPICALLTYPE GetCppBuilderDerived(CBaseVC**);


class CCppBuilderDerived :
	public CBaseVC
{
	virtual STDMETHODIMP DoSayHello()
	{
		MessageDlg("Hi!", mtInformation, TMsgDlgButtons() << mbOK, 0);
		return 0;
	}
	virtual STDMETHODIMP DoRelease() {delete this; return 0;}

public:
	CCppBuilderDerived(void) {}
	virtual ~CCppBuilderDerived(void){}
};

extern "C"
STDMETHODIMP __declspec(dllexport)  GetCppBuilderDerived(CBaseVC** val)
{
	*val = new CCppBuilderDerived;
	return 0;
}
